public class TestDay8 {
    public static void main(String[] args) {
        int[][] array = new int[15][15];
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                array[i][j]=0;
            }
        }
        System.out.print("    ");
        for (int i=0;i<10;i++){
            System.out.print(i+"  ");
        }
        for (int i=10;i<15;i++){
            System.out.print(i+" ");
        }
        System.out.println();
        for (int i = 0; i < array.length; i++) {
            if(i<10){
                System.out.print(i+"  |");
            }else {
                System.out.print(i+" |");
            }
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j]+"  ");
            }
            System.out.print("| "+i);
            System.out.println();
        }
        System.out.print("    ");
        for (int i=0;i<10;i++){
            System.out.print(i+"  ");
        }
        for (int i=10;i<15;i++){
            System.out.print(i+" ");
        }

    }
}
